<include file="Public/header" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<div class="container">

<form class="form-horizontal" method="post" enctype="multipart/form-data" action="{:(userupdate)}">
    <!--隐藏id-->
    <input type="hidden" name="uid" value="{$userupdate.uid}">
    <div class="form-group">
        <label for="username" class="col-md-2 control-label">用户名</label>
        <div class="col-md-5">
            <input type="text" class="form-control" id="username" name="username" placeholder="username" value="{$userupdate.username}">
        </div>
    </div>
<!-- 
    <div class="form-group">
        <label for="pass2" class="col-md-2 control-label">确认密码</label>
        <div class="col-md-5">
            <input type="password" class="form-control" id="pass2" name="pass2" placeholder="confirm pass" value="{$userupdate.pass2}">
        </div>
    </div>
 -->
 	<div class="form-group">
        <label for="stunum" class="col-md-2 control-label">学号 </label>
        <div class="col-md-5">
            <input type="stunum" class="form-control" id="stunum" name="stunum" placeholder="stunum" value="{$userupdate.stunum}">
        </div>
    </div>
    
    <div class="form-group">
        <label for="realname" class="col-md-2 control-label">真实姓名 </label>
        <div class="col-md-5">
            <input type="realname" class="form-control" id="realname" name="realname" placeholder="realname" value="{$userupdate.realname}">
        </div>
    </div>
    
    <div class="form-group">
        <label for="email" class="col-md-2 control-label">邮箱 </label>
        <div class="col-md-5">
            <input type="email" class="form-control" id="email" name="email" placeholder="email" value="{$userupdate.email}">
        </div>
    </div>

    <div class="form-group">
        <label for="tele" class="col-md-2 control-label">电话</label>
        <div class="col-md-5">
            <input type="text" class="form-control" id="tele" name="tele" placeholder="telephone" value="{$userupdate.tele}">
        </div>
    </div>

    <div class="form-group">
        <label for="realname" class="col-md-2 control-label">用户真名</label>
        <div class="col-md-5">
            <input type="text" class="form-control" id="realname" name="realname" placeholder="realname" value="{$userupdate.realname}">
        </div>
    </div>

    <div class="form-group">
        <label for="image" class="col-md-2 control-label">头像</label>
        <div class="col-md-3">
            <img clas="img-rounded" id="image" src="__PUBLIC__/Uploads/photo/{$userupdate.photo}"width="100px"/>
        </div>
    </div>
    <div class="form-group">
        <label for="photo" class="col-md-2 control-label">修改头像</label>
        <div class="col-md-2">
            <input type="file" id="photo" name="photo">
        </div>
    </div>

    <div class="col-md-4 col-md-offset-5">
        <button type="submit" name="submit" class="btn btn-default">修改</button>
        <button type="reset" name="reset" class="btn btn-default">重置</button>
        <a href="userList"><button type="button" class="btn btn-default">返回</button></a>
    </div>

</form>
</div>

<include file="Public/footer" />